<template>
  <div class="recommendedCourses">
    <div class="courseContent">
      <div class="img">
        <img :src="img" alt="" />
      </div>
      <div class="content">
        <p>{{ title }}</p>
        <p>{{ autorName }}</p>
        <i class="el-icon-video-play"></i><span>{{ students }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: ["img", "title", "students", "autorName"],
};
</script>

<style lang="scss" scoped>
.recommendedCourses {
  width: 320px;

  .courseContent {
    display: flex;
    width: 320px;

    .content {
        padding: 0 10px;
      width: 184px;
      p:first-child {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        font-size: 14px;
        color: #212B34;
          margin-bottom: 5px;

      }
      p:nth-child(2){
          color: #999;
          font-size: 12px;
          margin-bottom: 5px;
      }
      i,span{
          color: #999;
          font-size: 12px;
      }
    }
    img {
      width: 124px;
      height: 92px;
      border-radius: 5px;
    }
  }
}
</style>